FROM node:lts-alpine

RUN apk --update add tzdata \
    && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && echo "Asia/Shanghai" > /etc/timezone \
    && apk del tzdata \
    && npm config set registry https://registry.npm.taobao.org \
    && npm i -g pm2 \
    # && yarn config set registry https://registry.npm.taobao.org \
    && npm cache clean --force \
    && npm config -g set prefix /usr/local/cache/global \
    && npm config -g set cache /usr/local/cache/node_cache 

WORKDIR /app
